package com.yuandengta.yomall.auth.feign;

import com.yuandengta.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 第三方服务远程接口 {@link ThirdPartyFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 发送短信验证码
     * @param mobile
     * @param code
     * @return
     */
    @GetMapping("/sms/sendCode")
    R sendCode (@RequestParam("mobile") String mobile, @RequestParam("code") String code);
}
